package mappers;

import java.util.List;

import models.Point;

import org.apache.ibatis.annotations.Param;

public interface PositionsMapper {
    public List<Point> getAllByUsername(@Param("username")String username);
    public List<Point> getAllByUserId(@Param("user_id")int user_id);
    public Point getPosition(@Param("position_id")int position_id);
    public void insertPoint(@Param("point")Point point);
    public List<Point> getPoint(@Param("position_id")int position_id);
    public List<Point> point_photo(@Param("position_id")int position_id);
    public void getPointByUsername(@Param("point")Point point);
    public void insertUrl(@Param("point")Point point);
    public void updatePoint(@Param("point")Point point);
    public void deletePoint(@Param("point")Point point);
	public void insertCoordinate(@Param("point")Point point);
	public void updateCoordinate(@Param("point")Point point);
    public void deleteCoordinate(@Param("point")Point point);
    public List<Point> loadPhoto(@Param("username")String username);
	public void updateName(@Param("point")Point point);
	public void deleteMedia(@Param("point")Point point);
	public List<Point> getShareByUserId(@Param("position_id")int position_id);
}
